import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import {provideRouter, withDebugTracing} from '@angular/router';
import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { httpInterceptorProviders } from '../services/http/httpIntercepts';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { ApiList } from '../services/http/apiList';

export const appConfig: ApplicationConfig = {
  providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes, withDebugTracing()), provideAnimationsAsync(), provideHttpClient(), provideHttpClient(
    // DI-based interceptors must be explicitly enabled.
    withInterceptorsFromDi(),
  ), [...httpInterceptorProviders], ApiList, provideAnimationsAsync()]
};
